package com.example.article.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.commonutils.ResultData;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class ArticleEntity implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    private String userId;//作者id
    private String nickname;//作者昵称
    private String avatar;//作者头像
    private String title;//文章标题
    private String summary;//文章简介
    private String mdContent;//文章内容
    private Long viewCount;//浏览数
    private Date gmtCreate;
}
